{% extends 'AFSOC_app/base.html' %}
{% load static %}
{% block title %}AFSOC-创建部门{% endblock %}
{% block css %}
    <link rel="stylesheet" href="{% static 'css/login.css' %}">
{% endblock %}

{% block content %}
    <div class="container">
        {% if message %}
            <div class="alert alert-warning">{{ message }}</div>
        {% endif %}
        <div class="col-md-4 col-md-offset-4 myBorder" id="form_center">
            <form action="AFSOC_app/createDepartment/" method="post">
              {% csrf_token %}
              <h2 class="text-center">新建部门</h2>
              <div class="form-group">
                  {{ createDepartment_form.name.label_tag }}
                  {{createDepartment_form.name}}
              </div>
              <button type="reset" class="btn btn-default pull-left">重置</button>
              <button type="submit" class="btn btn-primary pull-right">提交</button>
          </form>
        </div>
    </div> <!-- /container -->
{% endblock %}